package com.ly.common.running.dao;

import com.ly.common.running.model.BasePro;

import java.util.List;
import java.util.Map;

/**
 * @author luoyana
 * @version V1.0
 * @ClassName MybatisDao
 * @description 数据库对象
 * @update 2022/12/24
 */
public interface MybatisDao {

    public <T extends BasePro> List<T> selectList(T var);

    public <T extends BasePro> T selectOne(T var);

    public <T extends BasePro> T selectOne(String className,T var);

    public <T extends BasePro> void deleteByPrimaryKey(T var);

    public <T extends BasePro> void insert(T var);

    public <T extends BasePro> List<T> selectList(String className,T var);

    public <T extends BasePro> int update(T var);

    public <T extends BasePro> T selectOne(String className,Map var);

    public <T extends BasePro> List<T> selectList(String className,Map var);

    public <T extends BasePro> int update(String className,Map var);

    public <T extends BasePro> void insert(String className,Map var);

    public <T extends BasePro> void deleteByPrimaryKey(String className,Map var);

}
